package com.rms.server.Domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;

@Alias("ingredient")
@Getter
@Setter
@Schema(name = "Ingredient", description = "原材料信息实体")
public class Ingredient {

    @Schema(description = "原材料的唯一标识符")
    private Long ingredientId;

    @Schema(description = "原材料的名称")
    private String ingredientName;

    @Schema(description = "原材料的单位（如：kg、个、瓶）")
    private String unit;

    @Schema(description = "库存数量")
    private BigDecimal stockQuantity;

    @Schema(description = "原材料的单价")
    private Double unitPrice;
}